#!/bin/bash

echo  hello \n hello
echo -e hello \n hello
echo -e "hello \n hello"

#str-hello
n=10

#拼接字符串
#str="hello world $n"
str="hello world $n"
echo $str

#拼接命令结果
echo "today is `date`"

# 单引号就是纯粹的字符串，shell不会解析
echo 'hello $n'
echo 'gello ${n}'
echo 'hello `date`'

#转义符可以
echo -e 'world \n world'